package java_test.reflection;

@MyAnntation(value ="hi")
public class Person1 extends Creature<String> implements Comparable<String>, MyInterface {
    private String name;
    int age;
    public int id;

    public Person1() {}

    @MyAnntation(value ="abc")
    private Person1(String name) {
        this.name = name;
    }

    public Person1(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String display(String interests) {
        return interests;
    }

    @MyAnntation
    private void show(String nation) {
        System.out.println("我的国籍是" + nation);
    }

    @Override
    public int compareTo(String o) {
        return 0;
    }

    @Override
    public void info() {

    }

    private static void showDesc() {
        System.out.println("我是人");
    }

    @Override
    public String toString() {
        return "Person1{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", id=" + id +
                '}';
    }
}
